package com.cskaoyan.vo.wxcart;

import com.cskaoyan.bean.wxcart.WxCart;
import lombok.Data;

import java.util.List;

/**
 * @program: mall
 * @description:
 * @author: Mr.Mengmeng
 * @create: 2021-04-13 08:32
 **/
@Data
public class WxCartIndexVo {

    private CartTotalBean cartTotal;
    private List<WxCart> cartList;

    public WxCartIndexVo(CartTotalBean cartTotal, List<WxCart> cartList) {
        this.cartTotal = cartTotal;
        this.cartList = cartList;
    }

    public WxCartIndexVo() {
    }

    @Data
    public static class CartTotalBean {

        private short goodsCount;
        private short checkedGoodsCount;
        private double goodsAmount;
        private double checkedGoodsAmount;

        public CartTotalBean(short goodsCount, short checkedGoodsCount, double goodsAmount, double checkedGoodsAmount) {
            this.goodsCount = goodsCount;
            this.checkedGoodsCount = checkedGoodsCount;
            this.goodsAmount = goodsAmount;
            this.checkedGoodsAmount = checkedGoodsAmount;
        }

        public CartTotalBean() {
        }
    }
}
